package com.company.whiledemo01;

public class Whiledemo1 {
    public static void main(String[] args) {

        //输出1-100

        int i = 0;

        while (i < 5201314){

            i++;
            System.out.println(i);
        }
    }
}
class Whiledemo2{
    public static void main(String[] args) {
        while (true){
            //等待客户端连接
            //定时检查
            //。。。。。。
        }
    }
}
class Whiledemo3{
    public static void main(String[] args) {
        //计算1+2+。。+100

        int i = 0;
        int sum = 0;
        while (i<=100){
            sum = sum + i;
            i++;
        }
        System.out.println(sum);
    }
}
